package com.zzwtec.validation.core;



/**
 * @author  草原狼
 *
 * 2017年8月22日
 */

public class ValidatorEngineFactory {
	public static String ENGINE = "com.zzwtec.validation.core.DefaultRuntimeEngine";

	public static ValidatorEngine getEngine(String engine){
		try {
			return (ValidatorEngine) Class.forName(engine).newInstance();
		}
		catch (Exception ex){
			ex.printStackTrace();
			throw new RuntimeException(ex.getMessage());
		}

	}
}
